{include file="admin/inc/header.tpl"}
<div id="content">
	
You are here:
<div id="underlinemenu">
<ul>
<li><a href="/admin/userlist/">User list -></a></li>
<li><a href="">all</a></li>
</ul>
</div>	

<table id="mytable" cellspacing="0" summary="List of registed users">
<caption>List of registed users</caption>
  <tr>
    <th scope="col">
    		<a href = "/admin/userlist/all/login/1/">^</a>
			Nick
			<a href = "/admin/userlist/all/login/0/">^</a>
	</th>
    <th scope="col">
    	<a href = "/admin/userlist/all/active/1/">^</a>
		Status
		<a href = "/admin/userlist/all/active/0/">^</a>
	</th>
    <th scope="col">
	<a href = "/admin/userlist/all/last_visit/1/">^</a>
	Last visit
	<a href = "/admin/userlist/all/last_visit/0/">^</a>
	</th>
	<th scope="col">
	<a href = "/admin/userlist/all/sex/1/">^</a>
	Sex
	<a href = "/admin/userlist/all/sex/0/">^</a>
	</th>
	<th scope="col">
	<a href = "/admin/userlist/all/block/1/">^</a>
	Block
	<a href = "/admin/userlist/all/block/0/">^</a>
	</th>
	<th scope="col">
	<a href = "/admin/userlist/all/avatar/1/">^</a>
	Avatar
	<a href = "/admin/userlist/all/avatar/0/">^</a>
	</th>
	<th scope="col">
	<a href = "/admin/userlist/all/created/1/">^</a>
	registed
	<a href = "/admin/userlist/all/created/0/">^</a>
	</th>
	<th scope="col">
	<a href = "/admin/userlist/all/abused/1/">^</a>
	Abuses
	<a href = "/admin/userlist/all/abused/0/">^</a>
	</th>
	<th scope="col">
	<a href = "/admin/userlist/all/rating/1/">^</a>
	Rating
	<a href = "/admin/userlist/all/rating/0/">^</a>
	</th>
	<th scope="col">
	<a href = "/admin/userlist/all/onhome/1/">^</a>
	On home
	<a href = "/admin/userlist/all/onhome/0/">^</a>
	</th>
  </tr>
  {foreach from=$users name=foo item=i}
  <tr>
    <th {if $smarty.foreach.foo.index%2==0} class="specalt"{else} class="spec"{/if}>
    	<a href="/admin/user/deluser/{$i.user_id}/" onclick="return confirm('Delete user {$i.user_login}. \nAre you sure?');">
    		<img src="/media/admin/img/bg-action-delete.gif">
		</a>
    		<a href="/admin/userlist/profile/{$i.user_id}/">
    		{$i.user_login}{if $i.abuse_count>0}<b><div id = "offline">(!)</div></b>{/if}
			</a>
	</th>
    <td {if $smarty.foreach.foo.index%2==0} class="alt"{/if}>
    	{if $i.user_active == 0}<div id="offline">offline</div>{else}
		<div id="online">online</div>{/if}
	</td>
	<td {if $smarty.foreach.foo.index%2==0} class="alt"{/if}>{$i.user_last_visit}</td>
	<td {if $smarty.foreach.foo.index%2==0} class="alt"{/if}>{$i.user_sex}</td>
	<td {if $smarty.foreach.foo.index%2==0} class="alt"{/if}>{$i.user_block|default:No}</td>
	<td {if $smarty.foreach.foo.index%2==0} class="alt"{/if}>
			{if ''==$i.user_avatar}No{else}Yes{/if}
	</td>
	<td {if $smarty.foreach.foo.index%2==0} class="alt"{/if}>{$i.user_created}</td>
	<td {if $smarty.foreach.foo.index%2==0} class="alt"{/if}>{$i.abuse_count}</td>
	<td {if $smarty.foreach.foo.index%2==0} class="alt"{/if}>{$i.user_rating|default:no}</td>
	<td {if $smarty.foreach.foo.index%2==0} class="alt"{/if}>
		{if $i.user_show_on_home==0}no{else}yes{/if}
	</td>
  </tr>
  {foreachelse}
  No user
  {/foreach}
</table>

<div class="side-col last">

<div class="action add" id="add_flow">
			<a href="/admin/user/adduser/">Add user</a>
</div>
</div>
<hr />
{include file="admin/inc/pager.tpl"}
<br /><br />
<div class="shiftcontainer">
<div class="shadowcontainer">
<div class="innerdiv">
<b>Tip:</b> <br />
If you want to change this table <a href="/admin/chatoptions/allusertable">click here</a>
</div>
</div>
</div>	

<!-- content-->
</div>

</body>
</html>